﻿#ifndef _CELL_EPOLL_SERVER_H_
#define _CELL_EPOLL_SERVER_H_

#if __linux__

#include "CELLServer.h"
#include "CELLEpoll.hpp"
#include "CELLClient.h"

class CELLEpollServer : public CELLServer
{
public:
	CELLEpollServer();

	virtual bool DoNetEvents() override;

	// 本类中加入客户端加入事件
	virtual void OnClientJoin(CELLClient* pClient);

	// 
	void rmClient(CELLClient* pClient);
private:
	CELLEpoll _ep;
};

#endif // #if __linux__

#endif // #ifndef _CELL_EPOLL_SERVER_H_
